package dao.mysql;

import dao.DAOFactory;
import dao.IEventDAO;
import dao.IEventTypeDAO;
import dao.IObjectDAO;
import dao.ISubjectDAO;
import dao.ITestConnection;
import dao.IValueDAO;

/**
 *
 * @author salvador
 */
public class MySqlDAOFactory extends DAOFactory {

    public MySqlDAOFactory()
    {
    	
    }
	
	public IEventDAO getEventDAO()
    {
        return new EventMySqlDAO();
    }

    public IEventTypeDAO getEventTypeDAO()
    {
        return new EventTypeMySqlDAO();
    }

	@Override
	public ISubjectDAO getUserDAO() {
		return new SubjectMySqlDAO();
	}

	@Override
	public IValueDAO getValueDAO() {
		return new ValueMySqlDAO();
	}

	@Override
	public IObjectDAO getItemDAO() {
		return new ObjectMySqlDAO();
	}

	@Override
	public ITestConnection getTestConnection() {
		return new TestConnectionMySql();
	}

}
